//1.引入 fs 模块;
const fs = require("fs");

//读取 [为学];
function readWeiXue(){
    return new Promise((resolve, reject) => {

    
    fs.readFile("./resources/为学.md",(err,data) =>{
        //如果失败;
        if(err) reject(err);
        //如果成功;
        resolve(data);
    })
})
}

//声明一个 async 函数;
async function main() {
    //获取为学内容;
    let WeiXue = await readWeiXue();
    console.log(WeiXue.toString());
    
}
main();